package com.grass.cropTradingCenter.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName user_order
 */
@TableName(value ="user_order")
@Data
public class UserOrder implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 商品描述
     */
    @TableField(value = "goods_description")
    private String goodsDescription;

    /**
     * 展示图片
     */
    @TableField(value = "goods_display_url")
    private String goodsDisplayUrl;

    /**
     * 套餐描述
     */
    @TableField(value = "package_description")
    private String packageDescription;

    /**
     * 套餐价格
     */
    @TableField(value = "package_price")
    private BigDecimal packagePrice;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 0-代付款  1--已付款  2--待发货  3--已发货  4--已收货 5--已评价 10--待退款 12--已退款
     */
    @TableField(value = "order_type")
    private Integer orderType;

    /**
     * 0--未删除  2--已删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    /**
     * 总价钱
     */
    @TableField(value = "total_price")
    private BigDecimal totalPrice;

    /**
     * 购买数量
     */
    @TableField(value = "buy_num")
    private Integer buyNum;

    /**
     * 收货人姓名
     */
    @TableField(value = "address_name")
    private String addressName;

    /**
     * 收货人地址
     */
    @TableField(value = "address_phone")
    private String addressPhone;

    /**
     * 收货人详情
     */
    @TableField(value = "address_detail")
    private String addressDetail;

    private Integer shopId;

    private String shopName;

    private String shopUrl;

    private String orderCode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}